{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
	{include file="public/script" /}
	<script src="__STATIC__/www/js/gg.js"></script>
	<script src="__STATIC__/www/js/hh.js"></script>
	<style>
		.g2-tooltip{
			top: 15px!important;
			left: 213px!important;
		}
	</style>
</head>
<body>
	<div class="sectionH sectionH2 mui-clearfix">
		<header class="mui-bar mui-bar-nav" style="">
			<a class="mui-icon mui-icon-left-nav  mui-pull-left" href="javascript:history.back(-1)" style="color: #727272;"></a>
			<h1 class="mui-title">{$info.real_name}</h1>
			<!--<a class="mui-icon mui-pull-right right1" href="javascript:;" style="padding-top: 10px;"><img src="images/nav_icon_search.png"/></a>-->
		</header>
	</div>
	<div class="kong1"></div>
	<div class="huiyuan_section1">
		<div class="container">
			<div class="huiyuan_section1_1">
				<p class="p1"><img src="{$info.avatar|default='/static/default_avatar.png'}"/></p>
				<p class="p2">{$info.real_name}</p>
				<p class="p3">{$info.bussiness_title}</p>
			</div>
		</div>
	</div>
	<div class="huiyuan_section2">
		<div class="container">
			<div class="huiyuan_section2_1">
				<p class="p1">能量值</p>
			</div>
			<div class="huiyuan_section2_2">
				<div id="mountNode"></div>
				<div class="gai"></div>
			</div>
		</div>
	</div>
	<div class="ge"></div>
	<div class="huiyuan_section3">
		<div class="container">
			<div class="huiyuan_section3_1">
				<p class="p1">荣誉</p>
			</div>
			<div class="huiyuan_section3_2 mui-clearfix">
				<ul>
					{volist name="$info.honor" id="honor"}
					<li><div>{$honor}</div></li>
                    {/volist}
				</ul>
			</div>
		</div>
	</div>
	<div class="ge"></div>
	<div class="huiyuan_section4">
		<div class="container">
			<div class="items">
				<div class="div1 mui-clearfix">
					<p class="p1">姓名</p>
					<p class="p2">{$info.real_name}</p>
				</div>
				<div class="div1 mui-clearfix">
					<p class="p1">电话</p>
					<p class="p2" ><span id="plll">{$info.mobile|hide_mobile}</span> <span class="s1 show_btnn" onclick="return show_mobile()">显示</span></p>
					<!--<p class="p3"><a href="tel:{$info.mobile}"><img src="__STATIC__/www/images/member_icon_phone.png"/></a></p>-->
				</div>
				<div class="div1 mui-clearfix">
					<p class="p1">邮箱</p>
					<p class="p2">{$info.email}</p>
					<!--<p class="p3"><a href="javascript:void(0);"><img src="__STATIC__/www/images/member_icon_email.png"/></a></p>-->
				</div>
				<div class="div1 mui-clearfix">
					<a href="javascript:void(0);">
						<p class="p1">部门</p>
						<p class="p2">{$info.department_title}</p>
						<!--<p class="p3"><a href="javascript:void(0);"><img src="__STATIC__/www/images/mine_co_icon_more.png"/></a></p>-->
					</a>
				</div>
				<div class="div1 mui-clearfix">
					<p class="p1">职务</p>
					<p class="p2">{$info.bussiness_title}</p>
				</div>
			</div>
		</div>
	</div>
	<div class="ge"></div>
	<div class="huiyuan_section5">
		<div class="huiyuan_section5_1">
			<div class="container">
				<p>个人简介</p>
			</div>
		</div>
		<div class="huiyuan_section5_2">
			<div class="container">
				<p class="p1">{$info.abstract}</p>
			</div>
		</div>
	</div>
	<div class="ge"></div>
	<div class="huiyuan_section6">
		<div class="huiyuan_section6_1">
			<div class="container">
				<p>服务内容</p>
			</div>
		</div>
		<div class="huiyuan_section6_2">
			<div class="container">
				<p class="p1">{$info.server}</p>
			</div>
		</div>
	</div>
	<div class="xinxin">
		<a href="{:url('Chat/message',['getid'=>$info.id])}"><img src="__STATIC__/www/images/member_btn_sendmessage.png"/></a>
	</div>
</body>

<script>
var _DataSet = DataSet,
  DataView = _DataSet.DataView;

var data = {$info.date_arr};
var dv = new DataView().source(data);
dv.transform({
  type: 'fold',
  fields: ['a'], // 展开字段集
  key: 'user', // key字段
  value: 'score' // value字段
});
var chart = new G2.Chart({
  container: 'mountNode',
  forceFit: true,
  height: window.innerHeight,
  padding: [20, 20, 95, 20]
});
chart.source(dv, {
  score: {
    min: 0,
    max: 80
  }
});
chart.coord('polar', {
  radius: 0.8
});
chart.axis('item', {
  line: null,
  tickLine: null,
  grid: {
    lineStyle: {
      lineDash: null
    },
    hideFirstLine: false
  }
});
chart.axis('score', {
  line: null,
  tickLine: null,
  grid: {
    type: 'polygon',
    lineStyle: {
      lineDash: null
    }
  }
});
chart.legend('user', {
  marker: 'circle',
  offset: 30
});
chart.line().position('item*score').color('user').size(2);
chart.point().position('item*score').color('user').shape('circle').size(4).style({
  stroke: '#fff',
  lineWidth: 1,
  fillOpacity: 1
});
chart.area().position('item*score').color('user');
chart.render();
</script>
<script>
	function show_mobile(){
	    var url="{:url('Bussiness/showMobile')}";
        var uid="{$info.id}";
        $.post(url,{uid:uid},function(data){
            var data=JSON.parse(data);
            if(data.result_code==="0000")
            {
                $("#plll").html(data.result_data.mobile);
                $(".show_btnn").css("display","none");

            }else if(data.result_data.bussiness_id>0){
                mui.confirm("您确认向对方商会发送《信息互通合约》吗？","提示",['发送','取消'],function (e) {
                    var url1="{:url('Bussiness/sendTreaty')}";
                    var recive_id="{$info.bussiness_id}";
                    $.post(url1,{recive_id:recive_id},function (e) {

                        if(e==1)
                        {
                            mui.alert("您的申请已发送，等待对方同意！");
                        }else{
                            mui.alert("您的申请发送失败，请稍后再试！");
                        }
                    })
                });
            }else{
                mui.alert(data.result_data);return false;
			}
        })
	}
	$(".show_btnn").click(function(){
        var url="{:url('Bussiness/showMobile')}";
        var uid="{$info.id}";
        $.post(url,{uid:uid},function(data){
            var data=JSON.parse(data);
            if(data.result_code==="0000")
            {
                $("#plll").html(data.result_data.mobile);
                $(".show_btnn").css("display","none");

            }else if(data.result_data.bussiness_id>0){
                mui.confirm("您确认向对方商会发送《信息互通合约》吗？","提示",['发送','取消'],function (e) {
                    var url1="{:url('Bussiness/sendTreaty')}";
                    var recive_id="{$info.bussiness_id}";
                    $.post(url1,{recive_id:recive_id},function (e) {

                        if(e==1)
                        {
                            mui.alert("您的申请已发送，等待对方同意！");
                        }else{
                            mui.alert("您的申请发送失败，请稍后再试！");
                        }
                    })
                });
            }
        })
	})
</script>

</html>